package C9_6_ReplaceConditionalWithPolymorphism;

/**
 * @author xugang1
 * @updated 2022/7/25
 * @description 以多态取代条件表达式
 */

public class Employee {
    /**
     * 重构后
     */

    private EmployeeType _type;

    public int payAmount() {
        return _type.payAmount(this);
    }



}